package stylistcrm.core.services.order.enums;

public enum EnumOrderStatus {

	NOT_COMPLETED("0","未完成"),
	COMPLETED("1","已完成"),
	CANCELED("2","已取消");

	private String code;
	
	private String desc;
	
	private EnumOrderStatus(String code,String desc){
		this.code=code;
		this.desc=desc;
	}
	
	public String getCode(){
		return code;
	}
	
	public String getDesc(){
		return desc;
	}
	
	public static EnumOrderStatus getEnum(String code) {

        for (EnumOrderStatus enumValue : EnumOrderStatus.values()) {
            if (enumValue.getCode().equals(code))
                return enumValue;
        }

        return null;
    }
}
